package com.isn.logueo.managed;

import java.util.HashMap;
import java.util.Map;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import org.primefaces.context.RequestContext;

@ManagedBean(name="control")
@SessionScoped
public class ControlSiniestrosBean {
	
	private String titleAseguradoPoliza ="";
		
	public String getTitleAseguradoPoliza() {
		return titleAseguradoPoliza;
	}

	public void setTitleAseguradoPoliza(String titleAseguradoPoliza) {
		this.titleAseguradoPoliza = titleAseguradoPoliza;
	}

	public void showMaestroAseguradoPoliza(String titulo) {  
		setTitleAseguradoPoliza(titulo);
		 Map<String,Object> options = new HashMap<String, Object>();  
	     options.put("modal", true);  
	     options.put("draggable", true);  
	     options.put("resizable", true);  
	     options.put("contentHeight", 500);  
	     options.put("contentWidth", 610);  
	     //hint: available options are modal, draggable, resizable, width, height, contentWidth and contentHeight  
	     RequestContext.getCurrentInstance().openDialog("maestroAsegurado",options,null);
	 } 	 
	 
}
